<?php

/**
 * @name: HOTN AnimeList
 * @author: HammerOnTheNail
 * @link: http://code.google.com/p/hotnanimelist/
 */

// Admin oldal címének meghatározása
$title .= " \ ".HOTN_ANIMELIST_ADMIN_MENU_FILE_CREATE;
$text = "";

// Mentés
if ($_POST['action'] == "new")
{
	$values_add = $HOTN_ANIMELIST_DOWNLOAD->hotn_animelist_download_add($_POST);
	
	if ($values_add === TRUE)
	{
		$ns -> tablerender(HOTN_ANIMELIST_ADMIN_DEFAULT_ERROR_TITLE, HOTN_ANIMELIST_ADMIN_FILE_SAVE);
	}
}

// Adatok
	// Alap adatok
	$values['action'] = e_SELF."?file.create";
	$values['hidden'] = array("action" => "new");
	$values['project_submit'] = HOTN_ANIMELIST_DEFAULT_FORM_ADD;
	
	include(e_PLUGIN."hotn_animelist/Admin/file/file.php");

// Admin oldal tartalmának megjelenítése
$text .= "<div style='text-align: center;'>".$HOTN_ANIMELIST_FORM->show_form($data)."</div>";
?>